import request from '@/axios'
import { QARTaskType } from './types'

export const getQARTaskListApi = (params: any) => {
  return request.get<QARTaskType[]>({ url: '/check/task', params })
}

export const addQARTaskApi = (data: any) => {
  return request.post({ url: '/check/task', data })
}

export const putQARTaskApi = (data: any) => {
  return request.put({ url: `/check/task/${data.id}`, data })
}

export const deleteQARTaskApi = (ids: string[] | number[]) => {
  return request.delete({ url: '/check/task', data: ids })
}
